ajout certif domain.tld
authorrominique <romain.legoff@heureux-cyclage.org>
Thu, 29 Aug 2024 09:57:17 +0000 (11:57 +0200)
committerrominique <romain.legoff@heureux-cyclage.org>
Thu, 29 Aug 2024 09:57:17 +0000 (11:57 +0200)
creation_nouveau_site.yml

index 48caac2..dc0d713 100644 (file)
           register: certbot_log
           ignore_errors: true
           changed_when: false
+          when: config_ss_domain != 'www'
+
+        - name: Générer un certififat avec certbot # noqa : command-instead-of-module
+          become: true
+          ansible.builtin.command: 'certbot certonly -n --nginx -d {{ DOMAIN }}.{{ TLD }} -d {{ config_ss_domain | default(SITE) }}.{{ DOMAIN }}.{{ TLD }}'
+          register: certbot_log
+          ignore_errors: true
+          changed_when: false
+          when: config_ss_domain == 'www'
 
         - name: Afficher les logs certbot
           ansible.builtin.debug: